package cn.coco.jf.fw.admin.sys.model.user;

import java.util.Date;

import cn.coco.jf.fw.admin.config.consts.SysConsts;

import com.jfinal.plugin.activerecord.Model;

public class UserModel extends Model<UserModel>{
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    public static UserModel dao = new UserModel().use(SysConsts.DATA_SOURCE_NAME_MYSQL);
    
    public UserModel newInstance(){
        return new UserModel().use(SysConsts.DATA_SOURCE_NAME_MYSQL);
    }
    
    public UserModel(){
        this.use(SysConsts.DATA_SOURCE_NAME_MYSQL);
    }
    
    private String roleName;

    public String getUserGender() {
        return get("userGender");
    }
    public void setUserGender(String userGender) {
        set("userGender", userGender);
    }
    public String getUserPhone() {
        return get("userPhone");
    }
    public void setUserPhone(String userPhone) {
        set("userPhone", userPhone);
    }
    public String getUserMail() {
        return get("userMail");
    }
    public void setUserMail(String userMail) {
        set("userMail", userMail);
    }
    public String getCreateUser() {
        return get("createUser");
    }
    public void setCreateUser(String createUser) {
        set("createUser", createUser);
    }
    public Date getCreateDateTime() {
        return get("createDateTime");
    }
    public void setCreateDateTime(Date createDateTime) {
        set("createDateTime", createDateTime);
    }
    public String getUpdateUser() {
        return get("updateUser");
    }
    public void setUpdateUser(String updateUser) {
        set("updateUser", updateUser);
    }
    public Date getUpdateDateTime() {
        return get("updateDateTime");
    }
    public void setUpdateDateTime(Date updateDateTime) {
        set("updateDateTime", updateDateTime);
    }
    public String getUserCode() {
        return get("userCode");
    }
    public void setUserCode(String userCode) {
        set("userCode", userCode);
    }
    public String getUserName() {
        return get("userName");
    }
    public void setUserName(String userName) {
         set("userName", userName);
    }
    public String getUserPasswd() {
        return get("userPasswd");
    }
    public void setUserPasswd(String userPasswd) {
        set("userPasswd", userPasswd);
    }
    public int getRoleId() {
        return get("roleId");
    }
    public void setRoleId(int roleId) {
         set("roleId", roleId);
    }

    public String getRoleName() {
        return get("roleName");
    }

    public void setRoleName(String roleName) {
        set("roleName", roleName);
    }
}
